import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import 'amfe-flexible';
import { createPinia } from 'pinia';
// pinia持久化缓存插件
import piniaPersist from 'pinia-plugin-persist';
import NutUI from "@nutui/nutui";
import "@nutui/nutui/dist/style.css";
import "@/common/css/reset.css";
declare global {
  interface Window {
    [key: string]: any
  }
}
const app = createApp(App);

const pinia = createPinia();
pinia.use(piniaPersist);
app.use(pinia);
app.use(NutUI);
app.use(router);
app.mount('#app');
